﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Base;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    
    
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;

    public class xucSalaryOverTime : Common.xucBase
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeMonth;
        private BarEditItem bbeSalaryName;
        private BarEditItem bbeYear;
        private BarButtonItem bbiAdd;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFinish;
        private BarButtonItem bbiLock;
        private BarButtonItem bbiOpen;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiRecal;
        private BarButtonItem bbiReload;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private BandedGridColumn colAdvance;
        private BandedGridColumn colAllowance;
        private BandedGridColumn colAllowanceInsurance;
        private BandedGridColumn colAssignment;
        private BandedGridColumn colAssignmentDebt;
        private BandedGridColumn colAssignmentPay;
        private BandedGridColumn colBasicSalary;
        private BandedGridColumn colBranchName;
        private BandedGridColumn colCoefficientSalary;
        private BandedGridColumn colDepartmentName;
        private BandedGridColumn colDependMoney;
        private BandedGridColumn colEmployeeCode;
        private BandedGridColumn colFirstName;
        private BandedGridColumn colGroupName;
        private BandedGridColumn colHealthInsurance;
        private BandedGridColumn colHealthInsurance1;
        private BandedGridColumn colIncomeTax;
        private BandedGridColumn colIncomeTaxMoney;
        private BandedGridColumn colIncomeTaxRemain;
        private BandedGridColumn colInsurance;
        private BandedGridColumn colInsurance1;
        private BandedGridColumn colInsuranceSalary;
        private BandedGridColumn colLastName;
        private BandedGridColumn colLateEarlyHour;
        private BandedGridColumn colMinusLateEarly;
        private BandedGridColumn colMinusMoney;
        private BandedGridColumn colNumberDepend;
        private BandedGridColumn colOvertime150;
        private BandedGridColumn colOvertime195;
        private BandedGridColumn colOvertime200;
        private BandedGridColumn colOvertime260;
        private BandedGridColumn colOvertime300;
        private BandedGridColumn colOvertime390;
        private BandedGridColumn colOvertimeTotal1;
        private BandedGridColumn colRemainSalary;
        private BandedGridColumn colSalary;
        private BandedGridColumn colSalaryDebt;
        private BandedGridColumn colSalaryHour;
        private BandedGridColumn colSalaryMinus;
        private BandedGridColumn colSalaryMinusBefore;
        private BandedGridColumn colSalaryOvertime;
        private BandedGridColumn colSalaryPay;
        private BandedGridColumn colSalaryPlus;
        private BandedGridColumn colSalaryPlusBefore;
        private BandedGridColumn colSocialInsurance;
        private BandedGridColumn colSocialInsurance1;
        private BandedGridColumn colStipulatedTime;
        private BandedGridColumn colTotalSalary;
        private BandedGridColumn colUnemploymentInsurance;
        private BandedGridColumn colUnemploymentInsurance1;
        private BandedGridColumn colUnion;
        private BandedGridColumn colUnion1;
        private BandedGridColumn colWorkHour;
        private BandedGridColumn colWorkSalary;
        private BandedGridColumn colWorkSalary1;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private FlowLayoutPanel flowLayoutPanel1;
        private FlowLayoutPanel flowLayoutPanel2;
        private FlowLayoutPanel flowLayoutPanel3;
        private AdvBandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand13;
        private GridBand gridBand2;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private HRM_SALARY l_Salary = new HRM_SALARY();
        private LabelControl lbBranchName;
        private LabelControl lbCompanyName;
        private LabelControl lbDepartmentName;
        private LabelControl lbGroupName;
        private LabelControl lbMessage;
        private LabelControl lbMessage1;
        private LabelControl lbSalaryName;
        private string m_Code = MyLogin.Code;
        private string m_CompanyName = "";
        private string m_EmployeeCode = "";
        private double m_Holiday = 0.0;
        private bool m_IsFinish = false;
        private bool m_IsLock = false;
        private int m_Level = MyLogin.Level;
        private int m_Month = 0;
        private decimal m_NightAllowance = 0M;
        private decimal m_NightMoney = 0M;
        private double m_NightTime = 0.0;
        private decimal m_Salary = 0M;
        private decimal m_SalaryHour = 0M;
        private decimal m_SalaryOverTime = 0M;
        private Guid m_SalaryTableListID = Guid.Empty;
        private double m_Sunday = 0.0;
        private double m_TotalHour = 0.0;
        private double m_Workday = 0.0;
        private int m_Year = 0;
        private PanelControl panelControl1;
        private PictureBox ptFinish;
        private PictureBox ptLock;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemTimeEdit repMonth;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemTimeEdit repYear;
        private xucExpandCollapseButton xucExpandCollapseButton1;
        private xucOrganization xucOrganization1;

        public event ClosedHander Closed;

        public xucSalaryOverTime()
        {
            this.InitializeComponent();
            this.InitMultiLanguages();
            this.Init();
        }

        private void bbiAdd_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (!hrm_timekeeper_tablelist.Exist(this.m_Month, this.m_Year))
            {
                MessageBox.Show("Bảng chấm c\x00f4ng th\x00e1ng n\x00e0y chưa được khởi tạo! Vui l\x00f2ng tạo bảng chấm c\x00f4ng trước khi thực hiện t\x00ednh lương!");
            }
            else
            {
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
                dic_salary_formula.Get();
                if (!hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
                {
                    this.m_SalaryTableListID = Guid.NewGuid();
                    if (hrm_salary_tablelist.Insert(this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year, dic_salary_formula.SocialInsurance, dic_salary_formula.HealthInsurance, dic_salary_formula.UnemploymentInsurance, dic_salary_formula.SocialInsurance1, dic_salary_formula.HealthInsurance1, dic_salary_formula.UnemploymentInsurance1, dic_salary_formula.OvertimeSaturdayType, false, false) == "OK")
                    {
                        HRM_SALARY.Create(this.m_Level, this.m_Code, this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year);
                    }
                }
                this.bbiAdd.Visibility = BarItemVisibility.Never;
                this.bbiRecal.Visibility = BarItemVisibility.Always;
                this.lbMessage1.Visible = false;
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                this.m_SalaryTableListID = hrm_salary_tablelist.SalaryTableListID;
                this.gcList.DataSource = new HRM_SALARY().GetList(this.m_Level, this.m_Code, this.m_SalaryTableListID);
            }
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHander();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Lương", "Xuất");
            base.Export();
        }

        private void bbiFinish_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!ClsOption.System2.IsQuestion || (XtraMessageBox.Show("Bạn c\x00f3 chắc l\x00e0 muốn thực hiện t\x00e1c vụ n\x00e0y kh\x00f4ng?" + Environment.NewLine + " T\x00e1c vụ n\x00e0y được hiểu l\x00e0 bạn đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No))
            {
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                if (hrm_salary_tablelist.Finish(this.m_SalaryTableListID).ToString() == "OK")
                {
                    this.m_IsLock = true;
                    this.m_IsFinish = true;
                    this.InitInterface();
                }
                else
                {
                    MessageBox.Show("Fail!");
                }
            }
        }

        private void bbiLock_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Lock(this.m_SalaryTableListID).ToString() == "OK")
            {
                this.m_IsLock = true;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Open(this.m_SalaryTableListID).ToString() == "OK")
            {
                this.m_IsLock = false;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            rptSalaryOverTime xtraReport = new rptSalaryOverTime(this.m_Level, this.m_Code, this.m_Month, this.m_Year);
            xfmReport report = new xfmReport();
            report.SetTitle("Bảng Lương Tăng Ca Th\x00e1ng " + this.m_Month.ToString() + "/" + this.m_Year.ToString());
            report.ShowPrintPreview(xtraReport);
        }

        private void bbiRecal_ItemClick(object sender, ItemClickEventArgs e)
        {
            Options.SetWaitDialogCaption("Đang t\x00ednh lại lương...");
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
            dic_salary_formula.Get();
            hrm_salary_tablelist.Update(this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year, dic_salary_formula.SocialInsurance, dic_salary_formula.HealthInsurance, dic_salary_formula.UnemploymentInsurance, dic_salary_formula.SocialInsurance1, dic_salary_formula.HealthInsurance1, dic_salary_formula.UnemploymentInsurance1, dic_salary_formula.OvertimeSaturdayType, false, false);
            HRM_SALARY.Create(this.m_Level, this.m_Code, this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year);
            this.LoadGrid(this.m_Level, this.m_Code);
            Options.HideDialog();
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadSalaryOverTimeMonth();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CellValueChanged(object sender, CellValueChangedEventArgs e)
        {
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
        {
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            try
            {
                this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                this.l_Salary.Get(this.m_SalaryTableListID, this.m_EmployeeCode);
                this.m_Salary = this.l_Salary.Salary;
            }
            catch
            {
            }
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList);
            }
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.lbCompanyName.Text = this.m_CompanyName = "";// MyInfo.Company;
            }
            this.lbBranchName.Text = "";
            this.lbDepartmentName.Text = "";
            this.lbGroupName.Text = "";
            this.m_Month = this.clsAllOption.MonthDefault.Month;
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.bbeMonth.EditValue = this.clsAllOption.MonthDefault;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.LoadSalaryOverTimeMonth();
            this.repMonth.EditValueChanging += new ChangingEventHandler(this.repMonth_EditValueChanging);
            this.repMonth.EditValueChanged += new EventHandler(this.repMonth_EditValueChanged);
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, Organization o) {
                HRM_GROUP hrm_group = new HRM_GROUP();
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                    this.lbCompanyName.Text = this.m_CompanyName;
                    this.lbBranchName.Text = "";
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                    hrm_branch.Get(o.BranchCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_branch.BranchName;
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                    hrm_department.Get(o.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                    hrm_group.Get(o.GroupCode);
                    hrm_department.Get(hrm_group.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "/ " + hrm_group.GroupName;
                }
            };
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucSalaryOverTime));
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            this.colSalaryDebt = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colSalaryPay = new BandedGridColumn();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeMonth = new BarEditItem();
            this.repMonth = new RepositoryItemTimeEdit();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbeSalaryName = new BarEditItem();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.bbiAdd = new BarButtonItem();
            this.bbiRecal = new BarButtonItem();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiLock = new BarButtonItem();
            this.bbiOpen = new BarButtonItem();
            this.bbiFinish = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.panelControl1 = new PanelControl();
            this.flowLayoutPanel3 = new FlowLayoutPanel();
            this.xucExpandCollapseButton1 = new xucExpandCollapseButton();
            this.lbGroupName = new LabelControl();
            this.lbDepartmentName = new LabelControl();
            this.flowLayoutPanel2 = new FlowLayoutPanel();
            this.lbBranchName = new LabelControl();
            this.lbCompanyName = new LabelControl();
            this.flowLayoutPanel1 = new FlowLayoutPanel();
            this.lbSalaryName = new LabelControl();
            this.lbMessage1 = new LabelControl();
            this.ptLock = new PictureBox();
            this.ptFinish = new PictureBox();
            this.lbMessage = new LabelControl();
            this.gcList = new GridControl();
            this.gbList = new AdvBandedGridView();
            this.gridBand2 = new GridBand();
            this.colEmployeeCode = new BandedGridColumn();
            this.colFirstName = new BandedGridColumn();
            this.colLastName = new BandedGridColumn();
            this.colBranchName = new BandedGridColumn();
            this.colDepartmentName = new BandedGridColumn();
            this.colGroupName = new BandedGridColumn();
            this.gridBand13 = new GridBand();
            this.colSalaryHour = new BandedGridColumn();
            this.colOvertime150 = new BandedGridColumn();
            this.colOvertime200 = new BandedGridColumn();
            this.colOvertime300 = new BandedGridColumn();
            this.colOvertime195 = new BandedGridColumn();
            this.colOvertime260 = new BandedGridColumn();
            this.colOvertime390 = new BandedGridColumn();
            this.colOvertimeTotal1 = new BandedGridColumn();
            this.colSalaryOvertime = new BandedGridColumn();
            this.colCoefficientSalary = new BandedGridColumn();
            this.colBasicSalary = new BandedGridColumn();
            this.colInsuranceSalary = new BandedGridColumn();
            this.colAllowanceInsurance = new BandedGridColumn();
            this.colAllowance = new BandedGridColumn();
            this.colTotalSalary = new BandedGridColumn();
            this.colAssignment = new BandedGridColumn();
            this.colAssignmentPay = new BandedGridColumn();
            this.colAssignmentDebt = new BandedGridColumn();
            this.colStipulatedTime = new BandedGridColumn();
            this.colWorkHour = new BandedGridColumn();
            this.colLateEarlyHour = new BandedGridColumn();
            this.colMinusLateEarly = new BandedGridColumn();
            this.colMinusMoney = new BandedGridColumn();
            this.colWorkSalary = new BandedGridColumn();
            this.colSocialInsurance = new BandedGridColumn();
            this.colHealthInsurance = new BandedGridColumn();
            this.colUnemploymentInsurance = new BandedGridColumn();
            this.colInsurance = new BandedGridColumn();
            this.colSocialInsurance1 = new BandedGridColumn();
            this.colHealthInsurance1 = new BandedGridColumn();
            this.colUnemploymentInsurance1 = new BandedGridColumn();
            this.colInsurance1 = new BandedGridColumn();
            this.colSalaryPlusBefore = new BandedGridColumn();
            this.colSalaryMinusBefore = new BandedGridColumn();
            this.colWorkSalary1 = new BandedGridColumn();
            this.colIncomeTax = new BandedGridColumn();
            this.colNumberDepend = new BandedGridColumn();
            this.colDependMoney = new BandedGridColumn();
            this.colIncomeTaxRemain = new BandedGridColumn();
            this.colIncomeTaxMoney = new BandedGridColumn();
            this.colRemainSalary = new BandedGridColumn();
            this.colAdvance = new BandedGridColumn();
            this.colUnion = new BandedGridColumn();
            this.colUnion1 = new BandedGridColumn();
            this.colSalaryPlus = new BandedGridColumn();
            this.colSalaryMinus = new BandedGridColumn();
            this.colSalary = new BandedGridColumn();
            this.repCalculator.BeginInit();
            this.imageCollection2.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.barManager1.BeginInit();
            this.repMonth.BeginInit();
            this.repYear.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.flowLayoutPanel3.SuspendLayout();
            this.flowLayoutPanel2.SuspendLayout();
            this.flowLayoutPanel1.SuspendLayout();
            ((ISupportInitialize) this.ptLock).BeginInit();
            ((ISupportInitialize) this.ptFinish).BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            base.SuspendLayout();
            this.colSalaryDebt.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryDebt.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryDebt.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryDebt.Caption = "C\x00f2n nợ lại";
            this.colSalaryDebt.ColumnEdit = this.repCalculator;
            this.colSalaryDebt.FieldName = "SalaryDebt";
            this.colSalaryDebt.Name = "colSalaryDebt";
            this.colSalaryDebt.OptionsColumn.ReadOnly = true;
            this.colSalaryDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryDebt.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.EditFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colSalaryPay.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryPay.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPay.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryPay.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colSalaryPay.ColumnEdit = this.repCalculator;
            this.colSalaryPay.FieldName = "SalaryPay";
            this.colSalaryPay.Name = "colSalaryPay";
            this.colSalaryPay.OptionsColumn.ReadOnly = true;
            this.colSalaryPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPay.Visible = true;
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x284);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("28e417a5-e33b-4cf0-97f0-df4093a2aa63");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(0x10a, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 0;
            this.dockPanel1.Size = new Size(0x10a, 630);
            this.dockPanel1.Text = "Ph\x00f2ng Ban V\x00e0 Tổ Nh\x00f3m";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x1d);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(260, 0x256);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(260, 0x256);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 1;
            this.xucOrganization1.Title = "";
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbeMonth, this.bbeYear, this.bbeSalaryName, this.bbiAdd, this.bbiPrint, this.bbiExport, this.bbiLock, this.bbiOpen, this.bbiFinish, this.bbiReload, this.bbiClose, this.bbiRecal });
            this.barManager1.MaxItemId = 13;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repMonth, this.repYear, this.repositoryItemComboBox1 });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeMonth, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeSalaryName, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAdd, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRecal, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiLock, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiOpen, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFinish, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeMonth.Caption = "Th\x00e1ng:";
            this.bbeMonth.Edit = this.repMonth;
            this.bbeMonth.Id = 0;
            this.bbeMonth.Name = "bbeMonth";
            this.repMonth.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Mask.UseMaskAsDisplayFormat = true;
            this.repMonth.Name = "repMonth";
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 2;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Mask.UseMaskAsDisplayFormat = true;
            this.repYear.Name = "repYear";
            this.bbeSalaryName.Caption = "T\x00ean Bảng Lương";
            this.bbeSalaryName.Edit = this.repositoryItemComboBox1;
            this.bbeSalaryName.Id = 3;
            this.bbeSalaryName.Name = "bbeSalaryName";
            this.bbeSalaryName.Width = 130;
            this.repositoryItemComboBox1.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemComboBox1.Appearance.Options.UseFont = true;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repositoryItemComboBox1.ReadOnly = true;
            this.bbiAdd.Caption = "Tạo";
            this.bbiAdd.Id = 4;
            this.bbiAdd.ImageIndex = 6;
            this.bbiAdd.Name = "bbiAdd";
            this.bbiAdd.ItemClick += new ItemClickEventHandler(this.bbiAdd_ItemClick);
            this.bbiRecal.Caption = "T\x00ednh Lại";
            this.bbiRecal.Id = 12;
            this.bbiRecal.ImageIndex = 0x41;
            this.bbiRecal.Name = "bbiRecal";
            this.bbiRecal.ItemClick += new ItemClickEventHandler(this.bbiRecal_ItemClick);
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 6;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiLock.Caption = "Kh\x00f3a Sổ";
            this.bbiLock.Id = 7;
            this.bbiLock.ImageIndex = 12;
            this.bbiLock.Name = "bbiLock";
            this.bbiLock.ItemClick += new ItemClickEventHandler(this.bbiLock_ItemClick);
            this.bbiOpen.Caption = "Mở Sổ";
            this.bbiOpen.Id = 8;
            this.bbiOpen.ImageIndex = 0x21;
            this.bbiOpen.Name = "bbiOpen";
            this.bbiOpen.ItemClick += new ItemClickEventHandler(this.bbiOpen_ItemClick);
            this.bbiFinish.Caption = "Ho\x00e0n Th\x00e0nh";
            this.bbiFinish.Id = 9;
            this.bbiFinish.ImageIndex = 0x1f;
            this.bbiFinish.Name = "bbiFinish";
            this.bbiFinish.ItemClick += new ItemClickEventHandler(this.bbiFinish_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 10;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.Name = "bbiReload";
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 11;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.flowLayoutPanel3);
            this.panelControl1.Controls.Add(this.flowLayoutPanel2);
            this.panelControl1.Controls.Add(this.flowLayoutPanel1);
            this.panelControl1.Controls.Add(this.lbMessage);
            this.panelControl1.Dock = DockStyle.Top;
            this.panelControl1.Location = new Point(0x13, 0x1a);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x412, 0x2f);
            this.panelControl1.TabIndex = 10;
            this.flowLayoutPanel3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel3.Controls.Add(this.xucExpandCollapseButton1);
            this.flowLayoutPanel3.Controls.Add(this.lbGroupName);
            this.flowLayoutPanel3.Controls.Add(this.lbDepartmentName);
            this.flowLayoutPanel3.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel3.Location = new Point(0x274, 0x16);
            this.flowLayoutPanel3.Name = "flowLayoutPanel3";
            this.flowLayoutPanel3.Size = new Size(0x19b, 0x15);
            this.flowLayoutPanel3.TabIndex = 8;
            this.xucExpandCollapseButton1.Location = new Point(0x187, 3);
            this.xucExpandCollapseButton1.Name = "xucExpandCollapseButton1";
            this.xucExpandCollapseButton1.Size = new Size(0x11, 15);
            this.xucExpandCollapseButton1.TabIndex = 5;
            this.xucExpandCollapseButton1.ExpandCollapsed += new xucExpandCollapseButton.ExpandCollapsedHander(this.xucExpandCollapseButton1_ExpandCollapsed);
            this.lbGroupName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbGroupName.Location = new Point(0x13f, 3);
            this.lbGroupName.Name = "lbGroupName";
            this.lbGroupName.Size = new Size(0x42, 13);
            this.lbGroupName.TabIndex = 4;
            this.lbGroupName.Text = " - GroupName";
            this.lbDepartmentName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbDepartmentName.Location = new Point(0xe5, 3);
            this.lbDepartmentName.Name = "lbDepartmentName";
            this.lbDepartmentName.Size = new Size(0x54, 13);
            this.lbDepartmentName.TabIndex = 3;
            this.lbDepartmentName.Text = "DepartmentName";
            this.flowLayoutPanel2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel2.Controls.Add(this.lbBranchName);
            this.flowLayoutPanel2.Controls.Add(this.lbCompanyName);
            this.flowLayoutPanel2.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel2.Location = new Point(0x274, 1);
            this.flowLayoutPanel2.Name = "flowLayoutPanel2";
            this.flowLayoutPanel2.Size = new Size(0x19b, 0x12);
            this.flowLayoutPanel2.TabIndex = 7;
            this.lbBranchName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbBranchName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbBranchName.Appearance.Options.UseFont = true;
            this.lbBranchName.Location = new Point(320, 3);
            this.lbBranchName.Name = "lbBranchName";
            this.lbBranchName.Size = new Size(0x58, 14);
            this.lbBranchName.TabIndex = 2;
            this.lbBranchName.Text = " - BranchName";
            this.lbCompanyName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbCompanyName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbCompanyName.Appearance.Options.UseFont = true;
            this.lbCompanyName.Location = new Point(0xe0, 3);
            this.lbCompanyName.Name = "lbCompanyName";
            this.lbCompanyName.Size = new Size(90, 14);
            this.lbCompanyName.TabIndex = 1;
            this.lbCompanyName.Text = "CompanyName";
            this.flowLayoutPanel1.Controls.Add(this.lbSalaryName);
            this.flowLayoutPanel1.Controls.Add(this.lbMessage1);
            this.flowLayoutPanel1.Controls.Add(this.ptLock);
            this.flowLayoutPanel1.Controls.Add(this.ptFinish);
            this.flowLayoutPanel1.Location = new Point(4, 4);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new Size(0x267, 20);
            this.flowLayoutPanel1.TabIndex = 4;
            this.lbSalaryName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbSalaryName.Appearance.Options.UseFont = true;
            this.lbSalaryName.Location = new Point(3, 3);
            this.lbSalaryName.Name = "lbSalaryName";
            this.lbSalaryName.Size = new Size(230, 14);
            this.lbSalaryName.TabIndex = 0;
            this.lbSalaryName.Text = "Bảng T\x00ednh Lương Tăng Ca Th\x00e1ng [00]";
            this.lbMessage1.Appearance.Font = new Font("Tahoma", 9f);
            this.lbMessage1.Appearance.ForeColor = Color.Red;
            this.lbMessage1.Appearance.Options.UseFont = true;
            this.lbMessage1.Appearance.Options.UseForeColor = true;
            this.lbMessage1.Location = new Point(0xef, 3);
            this.lbMessage1.Name = "lbMessage1";
            this.lbMessage1.Padding = new Padding(4, 0, 0, 0);
            this.lbMessage1.Size = new Size(0x14b, 14);
            this.lbMessage1.TabIndex = 1;
            this.lbMessage1.Text = ">> Nhấn n\x00fat \"Tạo\" để khởi tạo bảng lương cho th\x00e1ng n\x00e0y!";
            this.lbMessage1.Visible = false;
            this.ptLock.Image = MsgResc.lock_open__1_;
            this.ptLock.Location = new Point(0x241, 0);
            this.ptLock.Margin = new Padding(4, 0, 0, 0);
            this.ptLock.Name = "ptLock";
            this.ptLock.Size = new Size(0x10, 0x10);
            this.ptLock.TabIndex = 10;
            this.ptLock.TabStop = false;
            this.ptLock.Visible = false;
            this.ptFinish.Image = MsgResc.check;
            this.ptFinish.Location = new Point(0x255, 0);
            this.ptFinish.Margin = new Padding(4, 0, 0, 0);
            this.ptFinish.Name = "ptFinish";
            this.ptFinish.Size = new Size(0x10, 0x10);
            this.ptFinish.TabIndex = 11;
            this.ptFinish.TabStop = false;
            this.ptFinish.Visible = false;
            this.lbMessage.Appearance.ForeColor = Color.DarkBlue;
            this.lbMessage.Appearance.Options.UseForeColor = true;
            this.lbMessage.Location = new Point(4, 0x1c);
            this.lbMessage.Name = "lbMessage";
            this.lbMessage.Size = new Size(0x19f, 13);
            this.lbMessage.TabIndex = 2;
            this.lbMessage.Text = "[Nếu bạn chưa ph\x00e1t sinh dữ liệu chấm c\x00f4ng của th\x00e1ng n\x00e0y th\x00ec vui l\x00f2ng thực hiện trước]";
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x49);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x412, 0x255);
            this.gcList.TabIndex = 13;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.BandPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand2, this.gridBand13 });
            this.gbList.ColumnPanelRowHeight = 0x30;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colEmployeeCode, this.colFirstName, this.colLastName, this.colBranchName, this.colDepartmentName, this.colGroupName, this.colCoefficientSalary, this.colBasicSalary, this.colInsuranceSalary, this.colAllowanceInsurance, this.colAllowance, this.colTotalSalary, this.colSalaryHour, this.colOvertime150, this.colOvertime200, this.colOvertime300, 
                this.colOvertime195, this.colOvertime260, this.colOvertime390, this.colOvertimeTotal1, this.colSalaryOvertime, this.colAssignment, this.colAssignmentPay, this.colAssignmentDebt, this.colStipulatedTime, this.colWorkHour, this.colLateEarlyHour, this.colMinusLateEarly, this.colMinusMoney, this.colWorkSalary, this.colSocialInsurance, this.colHealthInsurance, 
                this.colUnemploymentInsurance, this.colInsurance, this.colSocialInsurance1, this.colHealthInsurance1, this.colUnemploymentInsurance1, this.colInsurance1, this.colSalaryPlusBefore, this.colSalaryMinusBefore, this.colWorkSalary1, this.colIncomeTax, this.colNumberDepend, this.colDependMoney, this.colIncomeTaxRemain, this.colIncomeTaxMoney, this.colRemainSalary, this.colAdvance, 
                this.colUnion, this.colUnion1, this.colSalaryPlus, this.colSalaryMinus, this.colSalary, this.colSalaryPay, this.colSalaryDebt
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colSalaryDebt;
            condition.Condition = FormatConditionEnum.Greater;
            condition.Value1 = 0;
            condition2.Appearance.ForeColor = Color.Red;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colSalaryPay;
            condition2.Condition = FormatConditionEnum.Equal;
            condition2.Value1 = "0";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.GroupSummary.AddRange(new GridSummaryItem[] { 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", null, " - Tổng thực l\x00e3nh: {0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "CoefficientSalary", this.colCoefficientSalary, "{0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "BasicSalary", this.colBasicSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "InsuranceSalary", this.colInsuranceSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "AllowanceInsurance", this.colAllowanceInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Allowance", this.colAllowance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "TotalSalary", this.colTotalSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "StipulatedTime", this.colStipulatedTime, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkHour", this.colWorkHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "LateEarlyHour", this.colLateEarlyHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusLateEarly", this.colMinusLateEarly, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusMoney", this.colMinusMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkSalary", this.colWorkSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SocialInsurance", this.colSocialInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "HealthInsurance", this.colHealthInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "UnemploymentInsurance", this.colUnemploymentInsurance, "{0:##,##0}"), 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Insurance", this.colInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Union", this.colUnion, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTax", this.colIncomeTax, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "NumberDepend", this.colNumberDepend, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "DependMoney", this.colDependMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxRemain", this.colIncomeTaxRemain, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxMoney", this.colIncomeTaxMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "RemainSalary", this.colRemainSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Advance", this.colAdvance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Assignment", this.colAssignment, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPlus", this.colSalaryPlus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryMinus", this.colSalaryMinus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", this.colSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPay", this.colSalaryPay, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryDebt", this.colSalaryDebt, "{0:##,##0}")
             });
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsPrint.AutoWidth = false;
            this.gbList.OptionsPrint.ExpandAllDetails = true;
            this.gbList.OptionsPrint.PrintPreview = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridBand2.Columns.Add(this.colEmployeeCode);
            this.gridBand2.Columns.Add(this.colFirstName);
            this.gridBand2.Columns.Add(this.colLastName);
            this.gridBand2.Columns.Add(this.colBranchName);
            this.gridBand2.Columns.Add(this.colDepartmentName);
            this.gridBand2.Columns.Add(this.colGroupName);
            this.gridBand2.Fixed = FixedStyle.Left;
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 0xda;
            this.colEmployeeCode.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colEmployeeCode.AppearanceHeader.Options.UseFont = true;
            this.colEmployeeCode.Caption = "M\x00e3 NV";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.Width = 0x43;
            this.colFirstName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colFirstName.AppearanceHeader.Options.UseFont = true;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.Width = 0x60;
            this.colLastName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colLastName.AppearanceHeader.Options.UseFont = true;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.Width = 0x37;
            this.colBranchName.Caption = "Chi nh\x00e1nh";
            this.colBranchName.FieldName = "BranchName";
            this.colBranchName.Name = "colBranchName";
            this.colBranchName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colBranchName.OptionsColumn.ReadOnly = true;
            this.colDepartmentName.Caption = "Ph\x00f2ng ban";
            this.colDepartmentName.FieldName = "DepartmentName";
            this.colDepartmentName.Name = "colDepartmentName";
            this.colDepartmentName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDepartmentName.OptionsColumn.ReadOnly = true;
            this.colGroupName.Caption = "Tổ nh\x00f3m";
            this.colGroupName.FieldName = "GroupName";
            this.colGroupName.Name = "colGroupName";
            this.colGroupName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colGroupName.OptionsColumn.ReadOnly = true;
            this.gridBand13.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand13.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand13.Caption = "Tăng ca";
            this.gridBand13.Columns.Add(this.colSalaryHour);
            this.gridBand13.Columns.Add(this.colOvertime150);
            this.gridBand13.Columns.Add(this.colOvertime200);
            this.gridBand13.Columns.Add(this.colOvertime300);
            this.gridBand13.Columns.Add(this.colOvertime195);
            this.gridBand13.Columns.Add(this.colOvertime260);
            this.gridBand13.Columns.Add(this.colOvertime390);
            this.gridBand13.Columns.Add(this.colOvertimeTotal1);
            this.gridBand13.Columns.Add(this.colSalaryOvertime);
            this.gridBand13.Name = "gridBand13";
            this.gridBand13.Width = 0x2a3;
            this.colSalaryHour.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryHour.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryHour.AppearanceHeader.ForeColor = Color.Red;
            this.colSalaryHour.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryHour.Caption = "Lương giờ";
            this.colSalaryHour.ColumnEdit = this.repCalculator;
            this.colSalaryHour.FieldName = "SalaryHour";
            this.colSalaryHour.Name = "colSalaryHour";
            this.colSalaryHour.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colSalaryHour.OptionsColumn.ReadOnly = true;
            this.colSalaryHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryHour.Visible = true;
            this.colOvertime150.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime150.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime150.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime150.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime150.Caption = "TC. Ng\x00e0y thường (h)";
            this.colOvertime150.ColumnEdit = this.repCalculator;
            this.colOvertime150.FieldName = "Overtime150";
            this.colOvertime150.Name = "colOvertime150";
            this.colOvertime150.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime150.OptionsColumn.ReadOnly = true;
            this.colOvertime150.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime150.Visible = true;
            this.colOvertime200.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime200.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime200.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime200.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime200.Caption = "TC. Chủ nhật (h)";
            this.colOvertime200.ColumnEdit = this.repCalculator;
            this.colOvertime200.FieldName = "Overtime200";
            this.colOvertime200.Name = "colOvertime200";
            this.colOvertime200.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime200.OptionsColumn.ReadOnly = true;
            this.colOvertime200.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime200.Visible = true;
            this.colOvertime300.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime300.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime300.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime300.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime300.Caption = "TC. Ng\x00e0y lễ (h)";
            this.colOvertime300.ColumnEdit = this.repCalculator;
            this.colOvertime300.FieldName = "Overtime300";
            this.colOvertime300.Name = "colOvertime300";
            this.colOvertime300.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime300.OptionsColumn.ReadOnly = true;
            this.colOvertime300.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime300.Visible = true;
            this.colOvertime195.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime195.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime195.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime195.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime195.Caption = "TCĐ. Ng\x00e0y thường (h)";
            this.colOvertime195.ColumnEdit = this.repCalculator;
            this.colOvertime195.FieldName = "Overtime195";
            this.colOvertime195.Name = "colOvertime195";
            this.colOvertime195.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime195.OptionsColumn.ReadOnly = true;
            this.colOvertime195.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime195.Visible = true;
            this.colOvertime260.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime260.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime260.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime260.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
            this.colOvertime260.ColumnEdit = this.repCalculator;
            this.colOvertime260.FieldName = "Overtime260";
            this.colOvertime260.Name = "colOvertime260";
            this.colOvertime260.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime260.OptionsColumn.ReadOnly = true;
            this.colOvertime260.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime260.Visible = true;
            this.colOvertime390.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime390.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime390.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime390.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime390.Caption = "TCĐ. Ng\x00e0y lễ (h)";
            this.colOvertime390.ColumnEdit = this.repCalculator;
            this.colOvertime390.FieldName = "Overtime390";
            this.colOvertime390.Name = "colOvertime390";
            this.colOvertime390.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime390.OptionsColumn.ReadOnly = true;
            this.colOvertime390.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime390.Visible = true;
            this.colOvertimeTotal1.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeTotal1.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeTotal1.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeTotal1.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeTotal1.Caption = "Tổng (h)";
            this.colOvertimeTotal1.ColumnEdit = this.repCalculator;
            this.colOvertimeTotal1.FieldName = "OvertimeTotal1";
            this.colOvertimeTotal1.Name = "colOvertimeTotal1";
            this.colOvertimeTotal1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeTotal1.OptionsColumn.ReadOnly = true;
            this.colOvertimeTotal1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeTotal1.Visible = true;
            this.colSalaryOvertime.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryOvertime.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryOvertime.AppearanceHeader.ForeColor = Color.Red;
            this.colSalaryOvertime.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryOvertime.Caption = "Tiền tăng ca";
            this.colSalaryOvertime.ColumnEdit = this.repCalculator;
            this.colSalaryOvertime.FieldName = "SalaryOvertime";
            this.colSalaryOvertime.Name = "colSalaryOvertime";
            this.colSalaryOvertime.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryOvertime.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryOvertime.Visible = true;
            this.colCoefficientSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colCoefficientSalary.AppearanceCell.Options.UseBackColor = true;
            this.colCoefficientSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colCoefficientSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colCoefficientSalary.Caption = "Hệ số lương";
            this.colCoefficientSalary.ColumnEdit = this.repCalculator;
            this.colCoefficientSalary.FieldName = "CoefficientSalary";
            this.colCoefficientSalary.Name = "colCoefficientSalary";
            this.colCoefficientSalary.OptionsColumn.ReadOnly = true;
            this.colCoefficientSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colCoefficientSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colCoefficientSalary.Visible = true;
            this.colCoefficientSalary.Width = 0x36;
            this.colBasicSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colBasicSalary.AppearanceCell.Options.UseBackColor = true;
            this.colBasicSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colBasicSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colBasicSalary.Caption = "Lương căn bản";
            this.colBasicSalary.ColumnEdit = this.repCalculator;
            this.colBasicSalary.FieldName = "BasicSalary";
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.OptionsColumn.ReadOnly = true;
            this.colBasicSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colBasicSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colBasicSalary.Visible = true;
            this.colBasicSalary.Width = 0x4c;
            this.colInsuranceSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colInsuranceSalary.AppearanceCell.Options.UseBackColor = true;
            this.colInsuranceSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsuranceSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colInsuranceSalary.Caption = "LCB đ\x00f3ng BH";
            this.colInsuranceSalary.ColumnEdit = this.repCalculator;
            this.colInsuranceSalary.FieldName = "InsuranceSalary";
            this.colInsuranceSalary.Name = "colInsuranceSalary";
            this.colInsuranceSalary.OptionsColumn.ReadOnly = true;
            this.colInsuranceSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsuranceSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsuranceSalary.Visible = true;
            this.colAllowanceInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colAllowanceInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowanceInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colAllowanceInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowanceInsurance.Caption = "Phụ cấp đ\x00f3ng BH";
            this.colAllowanceInsurance.ColumnEdit = this.repCalculator;
            this.colAllowanceInsurance.FieldName = "AllowanceInsurance";
            this.colAllowanceInsurance.Name = "colAllowanceInsurance";
            this.colAllowanceInsurance.OptionsColumn.ReadOnly = true;
            this.colAllowanceInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowanceInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowanceInsurance.Visible = true;
            this.colAllowance.AppearanceCell.BackColor = Color.SeaShell;
            this.colAllowance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowance.AppearanceHeader.ForeColor = Color.Red;
            this.colAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowance.Caption = "Tổng phụ cấp lương";
            this.colAllowance.ColumnEdit = this.repCalculator;
            this.colAllowance.FieldName = "Allowance";
            this.colAllowance.Name = "colAllowance";
            this.colAllowance.OptionsColumn.ReadOnly = true;
            this.colAllowance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowance.Visible = true;
            this.colAllowance.Width = 0x40;
            this.colTotalSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colTotalSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colTotalSalary.AppearanceCell.Options.UseBackColor = true;
            this.colTotalSalary.AppearanceCell.Options.UseFont = true;
            this.colTotalSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colTotalSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colTotalSalary.Caption = "Tổng lương";
            this.colTotalSalary.ColumnEdit = this.repCalculator;
            this.colTotalSalary.FieldName = "TotalSalary";
            this.colTotalSalary.Name = "colTotalSalary";
            this.colTotalSalary.OptionsColumn.ReadOnly = true;
            this.colTotalSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotalSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotalSalary.Visible = true;
            this.colTotalSalary.Width = 0x4c;
            this.colAssignment.AppearanceCell.BackColor = Color.Azure;
            this.colAssignment.AppearanceCell.Options.UseBackColor = true;
            this.colAssignment.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignment.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignment.Caption = "C\x00f4ng t\x00e1c ph\x00ed";
            this.colAssignment.ColumnEdit = this.repCalculator;
            this.colAssignment.FieldName = "Assignment";
            this.colAssignment.Name = "colAssignment";
            this.colAssignment.OptionsColumn.ReadOnly = true;
            this.colAssignment.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignment.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignment.Visible = true;
            this.colAssignmentPay.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentPay.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentPay.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentPay.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colAssignmentPay.ColumnEdit = this.repCalculator;
            this.colAssignmentPay.FieldName = "AssignmentPay";
            this.colAssignmentPay.Name = "colAssignmentPay";
            this.colAssignmentPay.OptionsColumn.ReadOnly = true;
            this.colAssignmentPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentPay.Visible = true;
            this.colAssignmentDebt.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentDebt.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentDebt.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentDebt.Caption = "C\x00f2n lại";
            this.colAssignmentDebt.ColumnEdit = this.repCalculator;
            this.colAssignmentDebt.FieldName = "AssignmentDebt";
            this.colAssignmentDebt.Name = "colAssignmentDebt";
            this.colAssignmentDebt.OptionsColumn.ReadOnly = true;
            this.colAssignmentDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentDebt.Visible = true;
            this.colStipulatedTime.AppearanceCell.BackColor = Color.GhostWhite;
            this.colStipulatedTime.AppearanceCell.Options.UseBackColor = true;
            this.colStipulatedTime.AppearanceHeader.ForeColor = Color.Purple;
            this.colStipulatedTime.AppearanceHeader.Options.UseForeColor = true;
            this.colStipulatedTime.Caption = "Số giờ quy định";
            this.colStipulatedTime.ColumnEdit = this.repCalculator;
            this.colStipulatedTime.FieldName = "StipulatedTime";
            this.colStipulatedTime.Name = "colStipulatedTime";
            this.colStipulatedTime.OptionsColumn.ReadOnly = true;
            this.colStipulatedTime.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colStipulatedTime.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colStipulatedTime.Visible = true;
            this.colStipulatedTime.Width = 0x33;
            this.colWorkHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colWorkHour.AppearanceCell.Options.UseBackColor = true;
            this.colWorkHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colWorkHour.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkHour.Caption = "Số giờ c\x00f4ng";
            this.colWorkHour.ColumnEdit = this.repCalculator;
            this.colWorkHour.FieldName = "WorkHour";
            this.colWorkHour.Name = "colWorkHour";
            this.colWorkHour.OptionsColumn.ReadOnly = true;
            this.colWorkHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkHour.Visible = true;
            this.colWorkHour.Width = 0x2e;
            this.colLateEarlyHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colLateEarlyHour.AppearanceCell.Options.UseBackColor = true;
            this.colLateEarlyHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colLateEarlyHour.AppearanceHeader.Options.UseForeColor = true;
            this.colLateEarlyHour.Caption = "Số giờ đi trể về sớm";
            this.colLateEarlyHour.ColumnEdit = this.repCalculator;
            this.colLateEarlyHour.FieldName = "LateEarlyHour";
            this.colLateEarlyHour.Name = "colLateEarlyHour";
            this.colLateEarlyHour.OptionsColumn.ReadOnly = true;
            this.colLateEarlyHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colLateEarlyHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colLateEarlyHour.Visible = true;
            this.colLateEarlyHour.Width = 0x3a;
            this.colMinusLateEarly.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusLateEarly.AppearanceCell.Options.UseBackColor = true;
            this.colMinusLateEarly.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusLateEarly.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusLateEarly.Caption = "Trừ tiền đi trể về sớm";
            this.colMinusLateEarly.ColumnEdit = this.repCalculator;
            this.colMinusLateEarly.FieldName = "MinusLateEarly";
            this.colMinusLateEarly.Name = "colMinusLateEarly";
            this.colMinusLateEarly.OptionsColumn.ReadOnly = true;
            this.colMinusLateEarly.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusLateEarly.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusLateEarly.Visible = true;
            this.colMinusLateEarly.Width = 0x3a;
            this.colMinusMoney.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusMoney.AppearanceCell.Options.UseBackColor = true;
            this.colMinusMoney.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusMoney.Caption = "Trừ ng\x00e0y nghỉ";
            this.colMinusMoney.ColumnEdit = this.repCalculator;
            this.colMinusMoney.FieldName = "MinusMoney";
            this.colMinusMoney.Name = "colMinusMoney";
            this.colMinusMoney.OptionsColumn.ReadOnly = true;
            this.colMinusMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusMoney.Visible = true;
            this.colMinusMoney.Width = 0x47;
            this.colWorkSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary.Caption = "Tiền lương";
            this.colWorkSalary.ColumnEdit = this.repCalculator;
            this.colWorkSalary.FieldName = "WorkSalary";
            this.colWorkSalary.Name = "colWorkSalary";
            this.colWorkSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary.Visible = true;
            this.colSocialInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance.Caption = "BHXH";
            this.colSocialInsurance.ColumnEdit = this.repCalculator;
            this.colSocialInsurance.FieldName = "SocialInsurance";
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance.Visible = true;
            this.colHealthInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance.Caption = "BHYT";
            this.colHealthInsurance.ColumnEdit = this.repCalculator;
            this.colHealthInsurance.FieldName = "HealthInsurance";
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance.Visible = true;
            this.colUnemploymentInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance.Caption = "BHTN";
            this.colUnemploymentInsurance.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance.FieldName = "UnemploymentInsurance";
            this.colUnemploymentInsurance.Name = "colUnemploymentInsurance";
            this.colUnemploymentInsurance.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance.Visible = true;
            this.colInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance.ColumnEdit = this.repCalculator;
            this.colInsurance.FieldName = "Insurance";
            this.colInsurance.Name = "colInsurance";
            this.colInsurance.OptionsColumn.ReadOnly = true;
            this.colInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance.Visible = true;
            this.colSocialInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance1.Caption = "BHXH";
            this.colSocialInsurance1.ColumnEdit = this.repCalculator;
            this.colSocialInsurance1.FieldName = "SocialInsurance1";
            this.colSocialInsurance1.Name = "colSocialInsurance1";
            this.colSocialInsurance1.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance1.Visible = true;
            this.colHealthInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance1.Caption = "BHYT";
            this.colHealthInsurance1.ColumnEdit = this.repCalculator;
            this.colHealthInsurance1.FieldName = "HealthInsurance1";
            this.colHealthInsurance1.Name = "colHealthInsurance1";
            this.colHealthInsurance1.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance1.Visible = true;
            this.colUnemploymentInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance1.Caption = "BHTN";
            this.colUnemploymentInsurance1.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance1.FieldName = "UnemploymentInsurance1";
            this.colUnemploymentInsurance1.Name = "colUnemploymentInsurance1";
            this.colUnemploymentInsurance1.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance1.Visible = true;
            this.colInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance1.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance1.ColumnEdit = this.repCalculator;
            this.colInsurance1.FieldName = "Insurance1";
            this.colInsurance1.Name = "colInsurance1";
            this.colInsurance1.OptionsColumn.ReadOnly = true;
            this.colInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance1.Visible = true;
            this.colSalaryPlusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlusBefore.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryPlusBefore.FieldName = "SalaryPlusBefore";
            this.colSalaryPlusBefore.Name = "colSalaryPlusBefore";
            this.colSalaryPlusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryPlusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlusBefore.Visible = true;
            this.colSalaryMinusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinusBefore.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryMinusBefore.FieldName = "SalaryMinusBefore";
            this.colSalaryMinusBefore.Name = "colSalaryMinusBefore";
            this.colSalaryMinusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryMinusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinusBefore.Visible = true;
            this.colWorkSalary1.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary1.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary1.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary1.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary1.Caption = "Tổng thu nhập";
            this.colWorkSalary1.ColumnEdit = this.repCalculator;
            this.colWorkSalary1.FieldName = "WorkSalary1";
            this.colWorkSalary1.Name = "colWorkSalary1";
            this.colWorkSalary1.OptionsColumn.ReadOnly = true;
            this.colWorkSalary1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary1.Visible = true;
            this.colIncomeTax.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTax.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTax.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTax.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTax.Caption = "Tiền chịu thuế";
            this.colIncomeTax.ColumnEdit = this.repCalculator;
            this.colIncomeTax.FieldName = "IncomeTax";
            this.colIncomeTax.Name = "colIncomeTax";
            this.colIncomeTax.OptionsColumn.ReadOnly = true;
            this.colIncomeTax.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTax.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTax.Visible = true;
            this.colIncomeTax.Width = 0x53;
            this.colNumberDepend.AppearanceCell.BackColor = Color.Ivory;
            this.colNumberDepend.AppearanceCell.Options.UseBackColor = true;
            this.colNumberDepend.AppearanceHeader.ForeColor = Color.Brown;
            this.colNumberDepend.AppearanceHeader.Options.UseForeColor = true;
            this.colNumberDepend.Caption = "Số người phụ thuộc";
            this.colNumberDepend.ColumnEdit = this.repCalculator;
            this.colNumberDepend.FieldName = "NumberDepend";
            this.colNumberDepend.Name = "colNumberDepend";
            this.colNumberDepend.OptionsColumn.ReadOnly = true;
            this.colNumberDepend.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colNumberDepend.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colNumberDepend.Visible = true;
            this.colNumberDepend.Width = 0x42;
            this.colDependMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colDependMoney.AppearanceCell.Options.UseBackColor = true;
            this.colDependMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colDependMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colDependMoney.Caption = "Tiền chi cho số người phụ thuộc";
            this.colDependMoney.ColumnEdit = this.repCalculator;
            this.colDependMoney.FieldName = "DependMoney";
            this.colDependMoney.Name = "colDependMoney";
            this.colDependMoney.OptionsColumn.ReadOnly = true;
            this.colDependMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colDependMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colDependMoney.Visible = true;
            this.colDependMoney.Width = 0x4d;
            this.colIncomeTaxRemain.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxRemain.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxRemain.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxRemain.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxRemain.Caption = "Số tiền c\x00f2n lại chịu thuế";
            this.colIncomeTaxRemain.ColumnEdit = this.repCalculator;
            this.colIncomeTaxRemain.FieldName = "IncomeTaxRemain";
            this.colIncomeTaxRemain.Name = "colIncomeTaxRemain";
            this.colIncomeTaxRemain.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxRemain.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxRemain.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxRemain.Visible = true;
            this.colIncomeTaxRemain.Width = 0x5d;
            this.colIncomeTaxMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxMoney.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colIncomeTaxMoney.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxMoney.AppearanceCell.Options.UseFont = true;
            this.colIncomeTaxMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxMoney.Caption = "Tiền đ\x00f3ng thuế";
            this.colIncomeTaxMoney.ColumnEdit = this.repCalculator;
            this.colIncomeTaxMoney.FieldName = "IncomeTaxMoney";
            this.colIncomeTaxMoney.Name = "colIncomeTaxMoney";
            this.colIncomeTaxMoney.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxMoney.Visible = true;
            this.colIncomeTaxMoney.Width = 0x4e;
            this.colRemainSalary.AppearanceCell.BackColor = Color.Ivory;
            this.colRemainSalary.AppearanceCell.Options.UseBackColor = true;
            this.colRemainSalary.AppearanceHeader.ForeColor = Color.Brown;
            this.colRemainSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colRemainSalary.Caption = "C\x00f2n lại sau khi trừ thuế TNCN";
            this.colRemainSalary.ColumnEdit = this.repCalculator;
            this.colRemainSalary.FieldName = "RemainSalary";
            this.colRemainSalary.Name = "colRemainSalary";
            this.colRemainSalary.OptionsColumn.ReadOnly = true;
            this.colRemainSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colRemainSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colRemainSalary.Visible = true;
            this.colRemainSalary.Width = 80;
            this.colAdvance.AppearanceCell.BackColor = Color.Azure;
            this.colAdvance.AppearanceCell.Options.UseBackColor = true;
            this.colAdvance.AppearanceHeader.ForeColor = Color.Blue;
            this.colAdvance.AppearanceHeader.Options.UseForeColor = true;
            this.colAdvance.Caption = "Tạm ứng";
            this.colAdvance.ColumnEdit = this.repCalculator;
            this.colAdvance.FieldName = "Advance";
            this.colAdvance.Name = "colAdvance";
            this.colAdvance.OptionsColumn.ReadOnly = true;
            this.colAdvance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAdvance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAdvance.Visible = true;
            this.colUnion.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion.AppearanceCell.Options.UseBackColor = true;
            this.colUnion.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion.ColumnEdit = this.repCalculator;
            this.colUnion.FieldName = "Union";
            this.colUnion.Name = "colUnion";
            this.colUnion.OptionsColumn.ReadOnly = true;
            this.colUnion.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion.Visible = true;
            this.colUnion.Width = 0x4d;
            this.colUnion1.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion1.AppearanceCell.Options.UseBackColor = true;
            this.colUnion1.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion1.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion1.ColumnEdit = this.repCalculator;
            this.colUnion1.FieldName = "Union1";
            this.colUnion1.Name = "colUnion1";
            this.colUnion1.OptionsColumn.ReadOnly = true;
            this.colUnion1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion1.Visible = true;
            this.colSalaryPlus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlus.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlus.ColumnEdit = this.repCalculator;
            this.colSalaryPlus.FieldName = "SalaryPlus";
            this.colSalaryPlus.Name = "colSalaryPlus";
            this.colSalaryPlus.OptionsColumn.ReadOnly = true;
            this.colSalaryPlus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlus.Visible = true;
            this.colSalaryMinus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinus.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinus.ColumnEdit = this.repCalculator;
            this.colSalaryMinus.FieldName = "SalaryMinus";
            this.colSalaryMinus.Name = "colSalaryMinus";
            this.colSalaryMinus.OptionsColumn.ReadOnly = true;
            this.colSalaryMinus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinus.Visible = true;
            this.colSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colSalary.AppearanceCell.Options.UseBackColor = true;
            this.colSalary.AppearanceCell.Options.UseFont = true;
            this.colSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colSalary.Caption = "Tổng thực l\x00e3nh";
            this.colSalary.ColumnEdit = this.repCalculator;
            this.colSalary.FieldName = "Salary";
            this.colSalary.Name = "colSalary";
            this.colSalary.OptionsColumn.ReadOnly = true;
            this.colSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalary.Visible = true;
            this.colSalary.Width = 0x54;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.panelControl1);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucSalaryOverTime";
            base.Size = new Size(0x425, 670);
            this.repCalculator.EndInit();
            this.imageCollection2.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.barManager1.EndInit();
            this.repMonth.EndInit();
            this.repYear.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.flowLayoutPanel3.ResumeLayout(false);
            this.flowLayoutPanel3.PerformLayout();
            this.flowLayoutPanel2.ResumeLayout(false);
            this.flowLayoutPanel2.PerformLayout();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.flowLayoutPanel1.PerformLayout();
            ((ISupportInitialize) this.ptLock).EndInit();
            ((ISupportInitialize) this.ptFinish).EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            base.ResumeLayout(false);
        }

        private void InitInterface()
        {
            if (!(this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.lbMessage.Text = "Đ\x00e3 mở sổ - Được ph\x00e9p chỉnh sửa bảng t\x00ednh lương th\x00e1ng n\x00e0y";
            }
            else if (!(!this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.lbMessage.Text = "Đ\x00e3 kho\x00e1 sổ - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
            }
            else if (!(this.m_IsLock || !this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
            }
            else if (this.m_IsLock && this.m_IsFinish)
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
            }
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
            {
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                if (hrm_salary_tablelist.OvertimeSaturdayType == 0)
                {
                    this.colOvertime200.Caption = "TC. Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
                }
                else
                {
                    this.colOvertime200.Caption = "TC. T7 & Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. T7 & Chủ nhật (h)";
                }
            }
            else
            {
                DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
                dic_salary_formula.Get();
                if (dic_salary_formula.OvertimeSaturdayType == 0)
                {
                    this.colOvertime200.Caption = "TC. Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
                }
                else
                {
                    this.colOvertime200.Caption = "TC. T7 & Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. T7 & Chủ nhật (h)";
                }
            }
        }

        private void InitMultiLanguages()
        {
            this.bbeMonth.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Month", this.bbeMonth.Caption);
            this.bbeYear.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Year", this.bbeYear.Caption);
            this.bbiPrint.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Print", this.bbiPrint.Caption);
            this.bbiExport.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Export", this.bbiExport.Caption);
            this.bbiReload.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Refresh", this.bbiReload.Caption);
            this.bbiClose.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Close", this.bbiClose.Caption);
            this.bbiRecal.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Recalculator", this.bbiRecal.Caption);
            this.bbeSalaryName.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "SalaryName", this.bbeSalaryName.Caption);
            this.bbiLock.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Lock", this.bbiLock.Caption);
            this.bbiOpen.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Open", this.bbiOpen.Caption);
            this.bbiFinish.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "Finish", this.bbiFinish.Caption);
            this.colEmployeeCode.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "EmployeeCode", this.colEmployeeCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_SalaryOverTime", "LastName", this.colLastName.Caption);
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                Guid salaryTableListID = this.m_SalaryTableListID;
                this.gcList.DataSource = new HRM_SALARY().GetList(Level, Code, salaryTableListID);
            }
            catch
            {
            }
        }

        private void LoadSalaryOverTimeMonth()
        {
            this.bbeSalaryName.EditValue = "Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString();
            this.lbSalaryName.Text = "Bảng T\x00ednh Lương Tăng Ca Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString();
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (!hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
            {
                this.bbiAdd.Visibility = BarItemVisibility.Always;
                this.bbiRecal.Visibility = BarItemVisibility.Never;
                this.gcList.DataSource = null;
                this.lbMessage1.Visible = true;
            }
            else
            {
                this.bbiAdd.Visibility = BarItemVisibility.Never;
                this.bbiRecal.Visibility = BarItemVisibility.Always;
                this.lbMessage1.Visible = false;
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                this.m_IsLock = hrm_salary_tablelist.IsLock;
                this.m_IsFinish = hrm_salary_tablelist.IsFinish;
                this.InitInterface();
                this.m_SalaryTableListID = hrm_salary_tablelist.SalaryTableListID;
                this.gcList.DataSource = new HRM_SALARY().GetList(this.m_Level, this.m_Code, this.m_SalaryTableListID);
            }
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void repMonth_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadSalaryOverTimeMonth();
        }

        private void repMonth_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Month = Convert.ToDateTime(e.NewValue.ToString()).Month;
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadSalaryOverTimeMonth();
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        private void xucExpandCollapseButton1_ExpandCollapsed(object sender, bool IsExpand)
        {
            if (IsExpand)
            {
                this.gbList.OptionsView.ShowGroupPanel = true;
            }
            else
            {
                this.gbList.OptionsView.ShowGroupPanel = false;
            }
        }

        public delegate void ClosedHander(object sender);
    }
}

